<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>Cadastro de Usuário</title>
    </head>

    <h:body>
        <h:panelGrid width="1000" border="2" >
            <img src="../resource/bannerEpa.jpg" align="center" style="left:50px" width="900" height="100" alt="bannerEpa"/>
        </h:panelGrid>
        <h:panelGrid columns="2" cellpadding="0" cellspacing="0">
            <h:panelGrid border="2" columns="1" width="200" bgcolor="#FFFFCC">
             <h:form>
                     <h:outputText value="Seja Bem Vindo ao Cadastro de Usuários!"/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
                     <h:commandLink value="Página de Login" action="index"></h:commandLink>
             </h:form>
         </h:panelGrid>
            <h:panelGrid border="2" width="800" columns="1" >
            <h:form>
                 <h:panelGrid columns="1">
                    <h:outputText value="Nome: "/>
                        <h:inputText value="#{cadastroUsuarioControle.newUser.nome}"/>
                        <h:outputText value="Nome Completo: "/>
                        <h:inputText value="#{cadastroUsuarioControle.newUser.nomeCompleto}"/>
                        <h:outputText value="Selecione o Tipo: "/>
                        <h:selectOneRadio value="#{cadastroUsuarioControle.newUser.tipo}">
                           <f:selectItem itemLabel="Professor" itemValue="2" />
                           <f:selectItem itemLabel="Aluno" itemValue="1"/>
                        </h:selectOneRadio>
                        <h:commandButton value="Salvar" action="#{cadastroUsuarioControle.Salvar}"/>
                     <br/>
                 </h:panelGrid>
             </h:form>

         </h:panelGrid>

        </h:panelGrid>
    </h:body>
</html>
